package com.zhl.study.controller;

import com.zhl.study.base.ResponseFactory;
import com.zhl.study.base.Result;
import com.zhl.study.service.IPlayerMineralService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("api/")
@Api(value = "公式计算", tags = "公式计算")
public class TestController {

    @Autowired
    IPlayerMineralService iPlayerMineralService;

    @GetMapping("/test")
    @ApiOperation(httpMethod = "GET", value = "普通打印")
    public Result<Void> generateThousandthGradeJson() {
        iPlayerMineralService.generateThousandthGradeJson();
        return ResponseFactory.ok();
    }
}
